import React from 'react'
import Item from '../../containers/WithItem'
import './List.css'
export default function List(props) {
  return (
    <ul className="todo-main">
      {props.todos.map((item) => (
        <Item key={item.id} todo={item}></Item>
      ))}
    </ul>
  )
}
